/*
 * @Author: your name
 * @Date: 2021-04-14 10:25:35
 * @LastEditTime: 2021-04-15 14:20:29
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /flutter_demo/lib/pages/tabs/Setting.dart
 */
import 'package:flutter/material.dart';
import 'package:flutter_demo/pages/users/Login.dart';
import 'package:flutter_demo/pages/users/RegisterFirst.dart';

class SettingPage extends StatefulWidget {
  @override
  _SettingPageState createState() => _SettingPageState();
}

class _SettingPageState extends State<SettingPage> {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        ElevatedButton(
          onPressed: () {
            // Navigator.push(
            //     context, MaterialPageRoute(builder: (context) => LoginPage()));
            Navigator.pushNamed(context, '/login');
          },
          child: Text('跳转到登录'),
        ),
        ElevatedButton(
          onPressed: () {
            // Navigator.push(context,
            //     MaterialPageRoute(builder: (context) => RegisterFirstPage()));
            Navigator.pushNamed(context, '/registerFirst');
          },
          child: Text('跳转到注册'),
        )
      ],
    );
  }
}
